package com.walterlife.javacore;

import java.nio.channels.Selector;

/**
 * Created by 111 on 2017/4/7.
 */
public class NIOTest {
    private static final int MAXSIZE = 5;

    public static void main(String[] args) {
        Selector[] sels = new Selector[MAXSIZE];

        try {
            for (int i = 0; i< MAXSIZE; i++) {
                sels[i] = Selector.open();
            }
            Thread.sleep(300000);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
